home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Classicos / 360catcher.swf / scripts / frame_21 / PlaceObject2_470_66 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2006-07-21  |  1.7 KB  |  95 lines

  1. onClipEvent(enterFrame){
  2.    if(Key.isDown(37))
  3.    {
  4.       _X = _X - xSpeed;
  5.    }
  6.    else if(Key.isDown(39))
  7.    {
  8.       _X = _X + xSpeed;
  9.    }
  10.    if(Key.isDown(65) && Key65 == false)
  11.    {
  12.       this.gotoAndStop(1);
  13.       Key65 = true;
  14.    }
  15.    if(Key.isDown(83) && Key83 == false)
  16.    {
  17.       this.gotoAndStop(2);
  18.       Key83 = true;
  19.    }
  20.    if(Key.isDown(68) && Key68 == false)
  21.    {
  22.       this.gotoAndStop(4);
  23.       Key68 = true;
  24.    }
  25.    if(Key.isDown(70) && Key70 == false)
  26.    {
  27.       this.gotoAndStop(3);
  28.       Key70 = true;
  29.    }
  30.    if(!Key.isDown(83) && Key83 == true)
  31.    {
  32.       Key83 = false;
  33.    }
  34.    if(!Key.isDown(65) && Key65 == true)
  35.    {
  36.       Key65 = false;
  37.    }
  38.    if(!Key.isDown(68) && Key68 == true)
  39.    {
  40.       Key68 = false;
  41.    }
  42.    if(!Key.isDown(70) && Key70 == true)
  43.    {
  44.       Key70 = false;
  45.    }
  46.    if(_currentframe == 1)
  47.    {
  48.       ActiBlue = true;
  49.       ActiRed = false;
  50.       ActiYellow = false;
  51.       ActiGreen = false;
  52.       ActiGris = false;
  53.    }
  54.    if(_currentframe == 2)
  55.    {
  56.       ActiBlue = false;
  57.       ActiRed = true;
  58.       ActiYellow = false;
  59.       ActiGreen = false;
  60.       ActiGris = false;
  61.    }
  62.    if(_currentframe == 3)
  63.    {
  64.       ActiBlue = false;
  65.       ActiRed = false;
  66.       ActiYellow = true;
  67.       ActiGreen = false;
  68.       ActiGris = false;
  69.    }
  70.    if(_currentframe == 4)
  71.    {
  72.       ActiBlue = false;
  73.       ActiRed = false;
  74.       ActiYellow = false;
  75.       ActiGreen = true;
  76.       ActiGris = false;
  77.    }
  78.    if(_currentframe == 5)
  79.    {
  80.       ActiBlue = false;
  81.       ActiRed = false;
  82.       ActiYellow = false;
  83.       ActiGreen = false;
  84.       ActiGris = true;
  85.    }
  86.    if(_X > 675)
  87.    {
  88.       _X = 675;
  89.    }
  90.    if(_X < 330)
  91.    {
  92.       _X = 330;
  93.    }
  94. }
  95.